<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<base href="<%=basePath%>">

<title>My JSP 'imf.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<script type="text/javascript">
	function login() {
		location.href("login.jsp");
	}
	function add() {
		location.href("addImf.jsp");
	}
	function lookUp(id) {
		location.href("imf.jsp?id=" + id);
	}
</script>
<style type="text/css">
td {
	text-align: center;
}

body {
	background-color: silver;
}
</style>
<script type="text/javascript" src="js/jquery-1.6.4.js"></script>
<script type="text/javascript" src="js/remain.js"></script>
</head>
<body>
	<form action="" name="ifma" method="post">
		<font color="#804040"><input align="left" type="button"
			value="返回登录页面" onclick="login()"> </font> &nbsp; &nbsp; &nbsp;
		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
		&nbsp; &nbsp; &nbsp; <font color="#8080ff"><input align="right"
			type="button" value="添加信息" onclick="add()"> </font> <br>
		<table align="center" border="1" width="678" height="73"
			bordercolor="#016038">
			<tr>
				<td>菜名</td>
				<td>单价</td>
				<td>时间</td>
				<td>购买人</td>
				<td>备注</td>
			</tr>
			<c:forEach var="itm" items="${conlist}">
				<tr>
					<td>${itm.cname}</td>
					<td>${itm.cprice}</td>
					<td>${itm.cdatetime}</td>
					<td>${itm.cman}</td>
					<td>${itm.cremark}</td>
				</tr>
			</c:forEach>
		</table>
		<br>
		<div id="jieguo" align="left">
			&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
			&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
			&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
			<font size="3" face="Adobe 楷体 Std R"> </font><font
				face="Adobe 楷体 Std R" size="3" color="#804040">总计：</font>&nbsp; <font
				color="#800040"><input type="text" width="100"
				name="sumMoney"> </font> &nbsp; <font face="Adobe 楷体 Std R"
				color="#804040">元</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<font face="Adobe 楷体 Std R" size="3" color="#804040"> 公款余额：</font>&nbsp;
			<font color="#800040"><div id="remain" style="display:inline">余额加载中...</div> </font> &nbsp; <font
				size="3" face="Adobe 楷体 Std R" color="#804040">元</font> <br> <br>
			<br>
		</div>
		<div id="select">
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<font size="3" face="Adobe 宋体 Std L" color="#408080"> <font
				face="Adobe 仿宋 Std R">请选择查询条件：</font> </font>&nbsp;&nbsp;&nbsp;&nbsp; <input
				type="text" width="200px" name="first"> <font
				face="Adobe 仿宋 Std R" size="3" color="#008000"> <font
				color="#408080">至</font> </font> <input type="text" width="200px"
				name="last"> &nbsp;&nbsp;&nbsp;&nbsp; <font color="#008000"><input
				type="submit" width="200" name="look" value="查看"> </font> <br>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<br>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp; <font color="#008080">快 速&nbsp;&nbsp;&nbsp; 查 看:</font> &nbsp;
			&nbsp; &nbsp;&nbsp; <select name="lookUp" onchange="look(this)">
				<option selected="selected" id="days">查看今天的消费</option>
				<option selected="selected" id="weeks">查看本周的消费</option>
				<option selected="selected" id="months">查看本月的消费</option>
			</select>

		</div>
	</form>
</body>
</html>
